import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'homePage',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('@/views/HomePage/HomePage.vue')
      }
    },
    {
      path: '/course',
      name: 'course',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('@/views/CoursePage/CoursePage.vue')
      }
    },
    {
      path: '/download',
      name: 'download',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('@/views/DownloadPage/DownloadPage.vue')
      }
    },
    {
      path: '/tools',
      name: 'tools',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('@/views/CoursePage/CoursePage.vue')
      }
    },
    {
      path: '/about',
      name: 'about',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('@/views/About/about-us.vue')
      }
    },
    {
      path: '/active',
      name: 'active',
      component: () => import('../views/SetActive.vue')
    },
    {
      path: '/home',
      name: 'home',
      component: () => import('../views/HomeView.vue')
    },
    {
      path: '/PsAi01',
      name: 'PsAi01',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 01/PsAi01.vue')
      }
    },
    {
      path: '/PsAi02',
      name: 'PsAi02',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 02/PsAi02.vue')
      }
    },
    {
      path: '/PsAi03',
      name: 'PsAi03',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 03/PsAi03.vue')
      }
    },
    {
      path: '/PsAi04',
      name: 'PsAi04',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 04/PsAi04.vue')
      }
    },
    {
      path: '/PsAi05',
      name: 'PsAi05',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 05/PsAi05.vue')
      }
    },

    {
      path: '/PsAi06',
      name: 'PsAi06',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 06/PsAi06.vue')
      }
    },
    {
      path: '/PsAi07',
      name: 'PsAi07',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ps Ai 0 Special Effects 07/PsAi07.vue')
      }
    },
    {
      path: '/AiRetouching01',
      name: 'AiRetouching01',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ai photo retouching course 01/AiPhotoRetouching01.vue')
      }
    },
    {
      path: '/AiRetouching02',
      name: 'AiRetouching02',
      components: {
        head: () => import('@/components/Head/HeadRouter.vue'),
        body: () => import('../views/Course/Ai photo retouching course 02/AiPhotoRetouching02.vue')
      }
    },
  ]
})

export default router
